package cn.blog.entity.origin;
/**
 * 文章实体类
 * @author 江明
 * @time 2018年3月11日
 * @function
 */

import java.sql.Date;

public class Article {

	private Integer artId;//文章编号
	private Integer artUserId;//用户编号
	private String artTitle;//文章标题
	private Integer artClassId;//文章类型id
	private Date artTime;//文章时间
	private Integer artRead;//文章阅读数
	private String artContext;//文章内容
	private String artState;//文章状态 草稿/已发表/作废
	/*
	 * 无参构造
	 */
	public Article() {
		super();
	}
	
	/**
	 * 
	 * @param artId	文章编号
	 * @param artUserId	用户编号
	 * @param artTitle	文章标题
	 * @param artClassId	文章类型id
	 * @param artTime	文章时间
	 * @param artRead	文章阅读数
	 * @param artContext	文章内容
	 * @param artState	文章状态 草稿/已发表/作废
	 */
	public Article(Integer artId, Integer artUserId, String artTitle, Integer artClassId, Date artTime, Integer artRead,
			String artContext, String artState) {
		super();
		this.artId = artId;
		this.artUserId = artUserId;
		this.artTitle = artTitle;
		this.artClassId = artClassId;
		this.artTime = artTime;
		this.artRead = artRead;
		this.artContext = artContext;
		this.artState = artState;
	}

	public Integer getArtId() {
		return artId;
	}

	public void setArtId(Integer artId) {
		this.artId = artId;
	}

	public Integer getArtUserId() {
		return artUserId;
	}

	public void setArtUserId(Integer artUserId) {
		this.artUserId = artUserId;
	}

	public String getArtTitle() {
		return artTitle;
	}

	public void setArtTitle(String artTitle) {
		this.artTitle = artTitle;
	}

	public Integer getArtClassId() {
		return artClassId;
	}

	public void setArtClassId(Integer artClassId) {
		this.artClassId = artClassId;
	}

	public Date getArtTime() {
		return artTime;
	}

	public void setArtTime(Date artTime) {
		this.artTime = artTime;
	}

	public Integer getArtRead() {
		return artRead;
	}

	public void setArtRead(Integer artRead) {
		this.artRead = artRead;
	}

	public String getArtContext() {
		return artContext;
	}

	public void setArtContext(String artContext) {
		this.artContext = artContext;
	}

	public String getArtState() {
		return artState;
	}

	public void setArtState(String artState) {
		this.artState = artState;
	}

	@Override
	public String toString() {
		return "Article [artId=" + artId + ", artUserId=" + artUserId + ", artTitle=" + artTitle + ", artClassId="
				+ artClassId + ", artTime=" + artTime + ", artRead=" + artRead + ", artContext=" + artContext
				+ ", artState=" + artState + "]";
	}
	
	
}
